package com.faithbj.common.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.Min;

/**
 * @author jrn E-mail: rinanjin@gmail.com
 * @version 0.1 
 * 创建时间：2012-6-3 下午09:24:35
 * 类说明
 */
@Entity
@Table(name = "criterion")
public class Criterion extends BaseEntity
{
	private static final long serialVersionUID = 1L;

	private String name;
	
	private Date fromDate;
	
	private Date toDate;
	
	private Boolean domicileLimit;
	
	private String domicile;
	
	private String operator;
	
	@Min(value = 0, message = "请输入大于等于0整数")
	private Integer avgArea;
	
	@Min(value = 0, message = "请输入大于等于0整数")
	private Integer avgIncome;
	
	@Min(value = 0, message = "请输入大于等于0整数")
	private Integer avgProperty;

	@Column(name = "name", nullable = false)
	public String getName()
	{
		return name;
	}

	@Column(name = "operator", nullable = false)
	public String getOperator()
	{
		return operator;
	}
	
	@Column(name = "from_date", nullable = false)
	public Date getFromDate()
	{
		return fromDate;
	}

	@Column(name = "to_date", nullable = false)
	public Date getToDate()
	{
		return toDate;
	}
	
	@Column(name = "domicilie_limit", nullable = false)
	public Boolean getDomicileLimit()
	{
		return domicileLimit;
	}

	@Column(name = "domicile", nullable = false)
	public String getDomicile()
	{
		return domicile;
	}

	@Column(name = "avg_area", nullable = false)
	public Integer getAvgArea()
	{
		return avgArea;
	}

	@Column(name = "avg_income", nullable = false)
	public Integer getAvgIncome()
	{
		return avgIncome;
	}

	@Column(name = "avg_property", nullable = false)
	public Integer getAvgProperty()
	{
		return avgProperty;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public void setOperator(String operator)
	{
		this.operator = operator;
	}

	public void setFromDate(Date fromDate)
	{
		this.fromDate = fromDate;
	}

	public void setToDate(Date toDate)
	{
		this.toDate = toDate;
	}

	public void setDomicileLimit(Boolean domicileLimit)
	{
		this.domicileLimit = domicileLimit;
	}

	public void setDomicile(String domicile)
	{
		this.domicile = domicile;
	}

	public void setAvgArea(Integer avgArea)
	{
		this.avgArea = avgArea;
	}

	public void setAvgIncome(Integer avgIncome)
	{
		this.avgIncome = avgIncome;
	}

	public void setAvgProperty(Integer avgProperty)
	{
		this.avgProperty = avgProperty;
	}
}
